from django.urls import path, re_path
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()
router.register(r'course',views.CourseViewSet)

urlpatterns = [
    path('category/', views.CategoryView.as_view()),
    path('label/', views.LabelView.as_view()),
    path('get_kind/', views.Query_Classified_Data.as_view()),
    path('get_label/', views.Query_Label_Data.as_view()),
    path('course/', views.CourseView.as_view()),
    path('get_chapter/', views.Query_Chapter_Data.as_view()),
    path('get_knobble/', views.Query_Knobble_Data.as_view()),
    path('attention/', views.AttentionView.as_view()),
    path('search/', views.course_index_search),
]

urlpatterns += router.urls